Optimal. Leaf size=114 \[ \frac {b^2 \log (x) (b c-a d)^2}{a^5}-\frac {b^2 (b c-a d)^2 \log (a+b x)}{a^5}+\frac {b (b c-a d)^2}{a^4 x}-\frac {(b c-a d)^2}{2 a^3 x^2}+\frac {c (b c-2 a d)}{3 a^2 x^3}-\frac {c^2}{4 a x^4} \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {88} \begin {gather*} \frac {b^2 \log (x) (b c-a d)^2}{a^5}-\frac {b^2 (b c-a d)^2 \log (a+b x)}{a^5}+\frac {c (b c-2 a d)}{3 a^2 x^3}-\frac {(b c-a d)^2}{2 a^3 x^2}+\frac {b (b c-a d)^2}{a^4 x}-\frac {c^2}{4 a x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 88
Rubi steps
\begin {align*} \int \frac {(c+d x)^2}{x^5 (a+b x)} \, dx &=\int \left (\frac {c^2}{a x^5}+\frac {c (-b c+2 a d)}{a^2 x^4}+\frac {(-b c+a d)^2}{a^3 x^3}-\frac {b (-b c+a d)^2}{a^4 x^2}+\frac {b^2 (-b c+a d)^2}{a^5 x}-\frac {b^3 (-b c+a d)^2}{a^5 (a+b x)}\right ) \, dx\\ &=-\frac {c^2}{4 a x^4}+\frac {c (b c-2 a d)}{3 a^2 x^3}-\frac {(b c-a d)^2}{2 a^3 x^2}+\frac {b (b c-a d)^2}{a^4 x}+\frac {b^2 (b c-a d)^2 \log (x)}{a^5}-\frac {b^2 (b c-a d)^2 \log (a+b x)}{a^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 127, normalized size = 1.11 \begin {gather*} \frac {\frac {a \left (-\left (a^3 \left (3 c^2+8 c d x+6 d^2 x^2\right )\right )+4 a^2 b x \left (c^2+3 c d x+3 d^2 x^2\right )-6 a b^2 c x^2 (c+4 d x)+12 b^3 c^2 x^3\right )}{x^4}+12 b^2 \log (x) (b c-a d)^2-12 b^2 (b c-a d)^2 \log (a+b x)}{12 a^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(c+d x)^2}{x^5 (a+b x)} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.29, size = 169, normalized size = 1.48 \begin {gather*} -\frac {3 \, a^{4} c^{2} + 12 \, {\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2}\right )} x^{4} \log \left (b x + a\right ) - 12 \, {\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2}\right )} x^{4} \log \relax (x) - 12 \, {\left (a b^{3} c^{2} - 2 \, a^{2} b^{2} c d + a^{3} b d^{2}\right )} x^{3} + 6 \, {\left (a^{2} b^{2} c^{2} - 2 \, a^{3} b c d + a^{4} d^{2}\right )} x^{2} - 4 \, {\left (a^{3} b c^{2} - 2 \, a^{4} c d\right )} x}{12 \, a^{5} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.90, size = 174, normalized size = 1.53 \begin {gather*} \frac {{\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2}\right )} \log \left ({\left | x \right |}\right )}{a^{5}} - \frac {{\left (b^{5} c^{2} - 2 \, a b^{4} c d + a^{2} b^{3} d^{2}\right )} \log \left ({\left | b x + a \right |}\right )}{a^{5} b} - \frac {3 \, a^{4} c^{2} - 12 \, {\left (a b^{3} c^{2} - 2 \, a^{2} b^{2} c d + a^{3} b d^{2}\right )} x^{3} + 6 \, {\left (a^{2} b^{2} c^{2} - 2 \, a^{3} b c d + a^{4} d^{2}\right )} x^{2} - 4 \, {\left (a^{3} b c^{2} - 2 \, a^{4} c d\right )} x}{12 \, a^{5} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 193, normalized size = 1.69 \begin {gather*} \frac {b^{2} d^{2} \ln \relax (x )}{a^{3}}-\frac {b^{2} d^{2} \ln \left (b x +a \right )}{a^{3}}-\frac {2 b^{3} c d \ln \relax (x )}{a^{4}}+\frac {2 b^{3} c d \ln \left (b x +a \right )}{a^{4}}+\frac {b^{4} c^{2} \ln \relax (x )}{a^{5}}-\frac {b^{4} c^{2} \ln \left (b x +a \right )}{a^{5}}+\frac {b \,d^{2}}{a^{2} x}-\frac {2 b^{2} c d}{a^{3} x}+\frac {b^{3} c^{2}}{a^{4} x}-\frac {d^{2}}{2 a \,x^{2}}+\frac {b c d}{a^{2} x^{2}}-\frac {b^{2} c^{2}}{2 a^{3} x^{2}}-\frac {2 c d}{3 a \,x^{3}}+\frac {b \,c^{2}}{3 a^{2} x^{3}}-\frac {c^{2}}{4 a \,x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.06, size = 164, normalized size = 1.44 \begin {gather*} -\frac {{\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2}\right )} \log \left (b x + a\right )}{a^{5}} + \frac {{\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2}\right )} \log \relax (x)}{a^{5}} - \frac {3 \, a^{3} c^{2} - 12 \, {\left (b^{3} c^{2} - 2 \, a b^{2} c d + a^{2} b d^{2}\right )} x^{3} + 6 \, {\left (a b^{2} c^{2} - 2 \, a^{2} b c d + a^{3} d^{2}\right )} x^{2} - 4 \, {\left (a^{2} b c^{2} - 2 \, a^{3} c d\right )} x}{12 \, a^{4} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.42, size = 160, normalized size = 1.40 \begin {gather*} -\frac {\frac {c^2}{4\,a}+\frac {x^2\,\left (a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2\right )}{2\,a^3}-\frac {b\,x^3\,\left (a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2\right )}{a^4}+\frac {c\,x\,\left (2\,a\,d-b\,c\right )}{3\,a^2}}{x^4}-\frac {2\,b^2\,\mathrm {atanh}\left (\frac {b^2\,{\left (a\,d-b\,c\right )}^2\,\left (a+2\,b\,x\right )}{a\,\left (a^2\,b^2\,d^2-2\,a\,b^3\,c\,d+b^4\,c^2\right )}\right )\,{\left (a\,d-b\,c\right )}^2}{a^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.08, size = 287, normalized size = 2.52 \begin {gather*} \frac {- 3 a^{3} c^{2} + x^{3} \left (12 a^{2} b d^{2} - 24 a b^{2} c d + 12 b^{3} c^{2}\right ) + x^{2} \left (- 6 a^{3} d^{2} + 12 a^{2} b c d - 6 a b^{2} c^{2}\right ) + x \left (- 8 a^{3} c d + 4 a^{2} b c^{2}\right )}{12 a^{4} x^{4}} + \frac {b^{2} \left (a d - b c\right )^{2} \log {\left (x + \frac {a^{3} b^{2} d^{2} - 2 a^{2} b^{3} c d + a b^{4} c^{2} - a b^{2} \left (a d - b c\right )^{2}}{2 a^{2} b^{3} d^{2} - 4 a b^{4} c d + 2 b^{5} c^{2}} \right )}}{a^{5}} - \frac {b^{2} \left (a d - b c\right )^{2} \log {\left (x + \frac {a^{3} b^{2} d^{2} - 2 a^{2} b^{3} c d + a b^{4} c^{2} + a b^{2} \left (a d - b c\right )^{2}}{2 a^{2} b^{3} d^{2} - 4 a b^{4} c d + 2 b^{5} c^{2}} \right )}}{a^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________